From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 26 Jan 2006 10:31:28 +0000 (+0100) Subject: Must destroy grant-table maptrack table before pagetables, X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16526^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=16f2e34d4f1e2172493c375a474397dec8025f87;p=xen.git Must destroy grant-table maptrack table before pagetables, as the latter hold reference counts that maptrack entries implicitly rely on. Signed-off-by: Keir Fraser --- diff --git a/xen/common/domain.c b/xen/common/domain.c index 881133b7d6..749d7c7fe9 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -130,8 +130,8 @@ void domain_kill(struct domain *d) { for_each_vcpu(d, v) sched_rem_domain(v); - domain_relinquish_resources(d); gnttab_release_mappings(d); + domain_relinquish_resources(d); put_domain(d); send_guest_virq(dom0->vcpu[0], VIRQ_DOM_EXC);